<?php echo $this->fetch('member.header.html'); ?>
<div id="page-member" class="w">
	<div class="main">
		<div class="member-info">
			<p class="detail webkit-box clearfix">
				<b><img src="<?php echo $this->_var['user']['portrait']; ?>"/></b>
				<span>
					<em style="font-size:1.25rem;"><?php echo htmlspecialchars($this->_var['user']['user_name']); ?></em>
					<span class="handle block mt10">
                        <a href="<?php echo url('app=member&act=profile'); ?>" class="fff mr10">编辑个人资料</a>
                        <a href="<?php echo url('app=member&act=password'); ?>" class="fff">修改密码</a>
                    </span>
				</span>
			</p>
			<!--<ul class="order-remind" style="display:none;">
				<?php if ($this->_var['store']): ?>
				<!--<li style="width:50%;">
					<a href="<?php echo url('app=seller_order&type=submitted'); ?>">
						待处理 <span>(<?php echo $this->_var['seller_stat']['submitted']; ?>)</span>
					</a>
				</li>
				<li style="width:50%;">
					<a href="<?php echo url('app=seller_order&type=accepted'); ?>">
						待发货 <span>(<?php echo $this->_var['seller_stat']['accepted']; ?>)</span>
					</a>
				</li>
				<?php else: ?>
				<!--<li>
					<a href="<?php echo url('app=buyer_order&type=pending'); ?>">
						待付款 <span>(<?php echo $this->_var['buyer_stat']['pending']; ?>)</span>
					</a>
				</li>
				<li>
					<a href="<?php echo url('app=buyer_order&type=shipped'); ?>">
						待确认 <span>(<?php echo $this->_var['buyer_stat']['shipped']; ?>)</span>
					</a>
				</li>
				<li>
					<a href="<?php echo url('app=buyer_order&type=finished'); ?>">
						待评价 <span>(<?php echo $this->_var['buyer_stat']['finished']; ?>)</span>
					</a>
				</li>
				<?php endif; ?>
			<!--</ul>-->
		</div>
		<div class="function-list">
			<ul>
				<li><a href="<?php echo url('app=buyer_order'); ?>">我的订单</a></li>
                <li><a href="<?php echo url('app=my_question'); ?>">我的咨询</a></li>
				<!--<li><a href="<?php echo url('app=buyer_groupbuy'); ?>">我的团购</a></li>-->
				<li><a href="<?php echo url('app=my_coupon'); ?>">我的优惠券</a></li>
				<li><a href="<?php echo url('app=my_favorite'); ?>">我收藏的商品</a></li>
				<li><a href="<?php echo url('app=my_favorite&type=store'); ?>">我收藏的店铺</a></li>
				<li><a href="<?php echo url('app=my_address'); ?>">我的收货地址</a></li>
                <?php if ($this->_var['store']): ?>
                <li><a href="<?php echo url('app=seller_order'); ?>">订单管理（卖家）</a></li>
                <li><a href="<?php echo url('app=my_qa'); ?>">咨询管理（卖家）</a></li>
                <?php endif; ?>
			</ul>
			<div class="btn"><a href="<?php echo url('app=member&act=logout'); ?>">退出登录</a></div>
		</div>
	</div>
</div>